package com.danny.mapper;

import com.danny.pojo.Guestroom;
import com.danny.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface GuestroomMapper {

    List<Guestroom> queryGuestroom();

    List<Guestroom> queryAllGuestroom();

    int addGuestroom(Guestroom guestroom);

    int updateGuestroom(Guestroom guestroom);

    int deleteGuestroom (String roomno);

    List<User> queryLimitHasInput(Map<String,Object> map);

    List<Guestroom> queryGuestroomLimit(String rtype, int page, int pageSize);

    List<Guestroom> queryGuestroomLimitBynoParam(int page, int pageSize);

    int GuestPageCount();

    int pageCount();
}
